package com.xc.common.object;

import java.time.format.DateTimeFormatter;
import java.util.HashMap;
import java.util.concurrent.TimeUnit;

import com.google.common.cache.Cache;
import com.google.common.cache.CacheBuilder;

public class Constant {
	public static Cache<String, String> yzmCache = CacheBuilder.newBuilder()
	        .expireAfterWrite(5, TimeUnit.MINUTES)
	        .build();
	public static DateTimeFormatter dateTimeDtf = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
	public static DateTimeFormatter timeDtf = DateTimeFormatter.ofPattern("HH:mm:ss");
	public static DateTimeFormatter minuteDtf = DateTimeFormatter.ofPattern("HH:mm");
	public static DateTimeFormatter dateDtf = DateTimeFormatter.ofPattern("yyyy-MM-dd");
	public static DateTimeFormatter mdDtf = DateTimeFormatter.ofPattern("MM-dd");
	public static DateTimeFormatter mdmDtf = DateTimeFormatter.ofPattern("MM-dd HH:mm");
	public static DateTimeFormatter yearDtf = DateTimeFormatter.ofPattern("yyyy");
	public static DateTimeFormatter yearmonthDtf = DateTimeFormatter.ofPattern("yyyyMM");
	public static String[] chineseWeekDay = new String[] {"0","星期一","星期二","星期三","星期四","星期五","星期六","星期天"};
	public static String faceserverip = "";
	public static String faceimgurl = "";
	public static String filedir = "";
	public static String SECRETKEY = "000201078cdb4acf81b32560820dd9c6";
	public final static int expire = 7200;
	public static HashMap<String,String> symbolMap = new HashMap<>();
}
